package com.atguigu.controller;

import com.atguigu.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *@ClassName: ConsumerControoler
 *@Author: Administrator
 *@Date: 2020-10-19 21:32
 */
@Controller
public class ConsumerController {

    @Autowired
    private ConsumerService consumerService;

    @ResponseBody
    @RequestMapping(path = "/helloAgent", method = RequestMethod.GET)
    public String helloAgent() {
        return consumerService.helloAgent();
    }
}
